﻿///<reference path="../../../Scripts/jquery-1.4.1-vsdoc.js"/>
///<reference path="../utils/Utils.js"/>

// Библейский стих
function BibleVerse(key, title, xml) {

    var key = key;
    var title = title;
    var xml = xml;
    var $xml = $(xml);

    //searchPattern in lower case
    this.CorrespondToSerachPattern = function (searchPattern) {
        var i = $xml.text().toLowerCase().indexOf(searchPattern);
        return i > -1;
    }

    this.GetText = function () {
        return $xml.text();
    }

    this.GetFullName = function () {
        //return "2-е Тимофею 5:2";
        return key;
    }

    this.GetKey = function () {
        return key;
    }
}